#!/bin/bash

sudo apt update 

sudo apt install -y nginx 

sudo apt install -y php7.2-curl  php7.2-opcache php7.2-zip php7.2-bcmath php7.2-dev php7.2-pgsql php7.2-json php7.2-cgi php7.2-fpm php7.2-tidy php7.2-cli php7.2-gd php7.2-mbstring php7.2-readline php7.2-xml php7.2-common php7.2-mysql

sudo apt install -y  mysql-client mysql-server


sudo wget https://dl.laravel-china.org/composer.phar -O /usr/local/bin/composer

sudo chmod a+x /usr/local/bin/composer

composer config -g repo.packagist composer https://packagist.laravel-china.org
